const fs = require('fs');
const axios = require('axios');

console.log('begin');

setTimeout(() => {
  console.log('setTimeout');
}, 0)

setImmediate(() => {
  console.log('setImmediate');
})

process.nextTick(() => {
  console.log('process.nextTick()');
})

Promise.resolve().then(() => {
  console.log('Promise resolve');
})

fs.readFile('./a.text', (err, buffer) => {
  console.log(buffer);
})

axios.get('http://47.94.46.113:8888/index/carousel/findAll').then(res => {
  console.log(res.status);
})

  ; (function () {
    console.log('立即执行函数');
  })()



console.log('end');